#!/usr/bin/python3


from mysqlDB import *
from log import *


testLog = CLog(logName="clearDB", isPrint=True)
DB = CMySqlDB(log=testLog, dbHost="81.68.195.26", dbUser="shengli", dbPwd="shengli0", dbName="fut_one_config")
DB.query(sqlStr="show databases")
data = DB.getData()
print(data)

strstr = "_fut_"
for db in data:
    s = str(db)
    strstr1 = s[4:9]
    if strstr1 == strstr:
        DB.exec("drop database " + s[2:-3])





